home *** CD-ROM | disk | FTP | other *** search
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- //
- // Alias|Wavefront Script File
- // MODIFY THIS AT YOUR OWN RISK
- //
- // Creation Date: 08 January 2002
- //
- // Description:
- // Define the Cloth shelf.
- //
- global proc shelf_Cloth() {
-
- // These items are only available in Maya Unlimited.
- //
- // Note that there really should be a license check explicitly
- // for cloth. Currently, there isn't so that is why the test
- // below is on fluids, since fluids == Unlimited for 4.5.
- //
- if( fluidEditLicenseFound() ) {
-
- shelfButton
- -label "Panel"
- -annotation "Panel: Select curves to create a cloth panel"
- -image1 "cpCreatePanel.xpm"
- -command ("performCloth createPanel");
-
- shelfButton
- -label "Garment"
- -annotation "Garment: Select curves or a panel to create a garment"
- -image1 "cpCreateGarment.xpm"
- -command ("performCloth createGarment");
-
- shelfButton
- -label "Seam"
- -annotation "Seam: Select one or two curves to create a seam"
- -image1 "cpCreateSeam.xpm"
- -command ("performCloth createSeam");
-
- shelfButton
- -label "Collision Object"
- -annotation ("Collision Object: Select a NURBS or polygon object "
- + "to create a collision object")
- -image1 "cpCreateCollisionObj.xpm"
- -command ("$obj = `ls -sl`; performCloth createCollisionObject; "
- + "select $obj");
-
- shelfButton
- -label "Remove Collision Object"
- -annotation ("Remove Collision Object: Disconnect selected "
- + "collision objects from the solver")
- -image1 "cpRemoveCollisionObj.xpm"
- -command ("performCloth removeCollisionObject");
-
- shelfButton
- -label "Cloth Object"
- -annotation ("Cloth Object: Select a polygon object to create "
- + "a cloth object")
- -image1 "cpCreateClothObject.xpm"
- -command ("$obj = `ls -sl`; performCloth createClothObject; "
- + "select $obj");
-
- shelfButton
- -label "Transform Constraint"
- -annotation ("Transform Constraint: Select cloth vertices "
- + "or a curve, then a transform")
- -image1 "cpTransConst.xpm"
- -command ("performCloth createTransformConstraint");
-
- shelfButton
- -label "Mesh Constraint"
- -annotation ("Mesh Constraint: Select cloth vertices or a "
- + "curve, then a transform")
- -image1 "cpMeshConst.xpm"
- -command ("performCloth createMeshConstraint");
-
- shelfButton
- -label "Cloth Constraint"
- -annotation ("Create Cloth Constraint: Select cloth vertices or a "
- + "curve, then the cloth")
- -image1 "cpClothConst.xpm"
- -command ("performCloth createClothConstraint");
-
- shelfButton
- -label "Field Constraint"
- -annotation ("Field Constraint: Select cloth vertices or a "
- + "curve, then a field")
- -image1 "cpFieldConst.xpm"
- -command ("performCloth createFieldConstraint");
-
- shelfButton
- -label "Collision Set"
- -annotation "Collision Set: Select cloth vertices or a curve"
- -image1 "cpCollisionConst.xpm"
- -command ("performCloth createCollision");
-
- shelfButton
- -label "Button Constraint"
- -annotation ("Button Constraint: Select one or more "
- + "transforms, then the cloth")
- -image1 "cpButtonConst.xpm"
- -command ("cpButton");
-
- shelfButton
- -label "Cloth Property"
- -annotation "Cloth Property"
- -image1 "cpClothProp.xpm"
- -command ("evalEcho(\"cpCreateNewProperty\")");
-
- shelfButton
- -label "Paint Cloth Properties Tool"
- -annotation ("Paint Cloth Properties Tool: Paint Cloth Property "
- + "Attributes")
- -image1 "cpClothPaintProp.xpm"
- -command ("clothPaintToolScript 4");
-
- shelfButton
- -label "Delete Cache"
- -annotation "Delete Cache: Select a solver or garment"
- -image1 "cpDeleteCache.xpm"
- -command ("cpDeleteCache");
-
- shelfButton
- -label "Truncate Cache"
- -annotation "Truncate Cache: Select a solver or garment"
- -image1 "cpTruncCache.xpm"
- -command ("cpTruncateCache");
-
- shelfButton
- -label "Start Simulation"
- -annotation "Start Simulation"
- -image1 "cpStartSim.xpm"
- -command ("performCloth startSimulation");
-
- shelfButton
- -label "Stop Simulation"
- -annotation "Stop Simulation"
- -image1 "cpStopSim.xpm"
- -command ("performCloth stopSimulation");
- }
- }
-